package com.youseu.taoliving.commodity.exception;

/**
 * @author Tao
 * @version 1.0
 * 枚举错误码和错误信息
 */
public enum  ErrorCodeEnum {
    UNKNOWN_EXCEPTION(40000, "系统未知异常"),
    INVALID_EXCEPTION(40001, "参数校验异常");

    private final int code;
    private final String message;

    ErrorCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
